/**
 * Copyright (C) 2010 Hamburg Sud
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hamburgsud.log4testing.core.output.writer;

import com.hamburgsud.log4testing.core.data.TestObject;

/**
 * This is interface is to be implemented by classes which shall be loaded by
 * log4testing and which shall be used for writing logging reports. A writer
 * implementation can be made available through the configuration file
 * log4testing.xml.
 * 
 * @param <T>
 *            a test object like a test case or a test suite
 */
public interface Writer<T extends TestObject> {

	/**
	 * This method gets called by log4testing when the implementing writer class
	 * is registered and when log4testing is going to write the logging reports.
	 * 
	 * @param logObject
	 *            to be written
	 */
	public void write(T logObject);

}
